<div class="page-center">
  <div class="main-page">
    <div class=" grid_12 t_space_bottom" id="container_1">
      <div class="breadcrumb"><a href="<?php echo base_url(); ?>">Home</a> <span>&gt;</span> <b>Find ticket</b> </div>
    </div>
    <script type="text/javascript">
	  $(document).ready(function(){
		  $(document).on("click",".extrasv",function(){$obj = $("#servicehide");
			  if($(this).is(":checked")){$val = $(this).val();$title = $(this).attr("datatitle");$obj.val($val);$obj.attr("datatitle",$title);}
		  });
		  $(document).on("click","#btnContinue",function(){
			  $fullname = $("#hname").val();
			  $email = $("#hemail").val();
			  $phone = $("#hphone").val();$info = $("#hinfo").val();
			  $country = $("#hcountry").val();$error = $("#herrors");
			  $serprice = $("#servicehide").val(); $sertitle = $("#servicehide").attr("datatitle");
			  if($fullname == "" || $email == "" || $phone == ""){
				  $error.html("Please enter your information");
				  $("#hname").focus();
				  return false;
			  }else{
				  jQuery.post("<?php echo base_url()."home/services/ajax"; ?>",{name:$fullname,email:$email,phone:$phone,country:$country,info:$info,serprice:$serprice,sertitle:$sertitle},function(result){
					 if(result == 1){ 
					 	$error.html("Valid email address!"); 
					 }else{
						 $error.html("<img src='<?php echo base_url(); ?>public/images/ajax-loader.gif' />");
						 setTimeout(function(){
							 $error.html("<span style='color:green;font-weight:bold'>Thank for your booking, We will reply you soon</span> <br /><img src='<?php echo base_url(); ?>public/images/4-0.gif' /> Redirect to home...");
							 $("#hname").val("");$("#hemail").val("");$("#hphone").val("");$("#hinfo").val("");
						 },3000);
						 setTimeout(function(){
							 window.location = "<?php echo base_url(); ?>";
						 },12000);
					 }
				  });
			  }
			  return false;
		  });
	  });
	  </script>
    <div class=" grid_12 t_space_bottom" id="container_2">
      <div class=" grid_3 omega col-left-243" id="container_3">
        <?php $this->load->view("public/form-service"); ?>
      </div>
      <div class=" grid_9 alpha col-696 Fr" id="container_4">﻿
        <div id="Result">
          <div class="clearfix box-schedule">
            <form id="frmBook" action="" method="post">
              <div class="line10 overflow">
                <ul class="bookStep Fl">
                  <li><b>Search</b></li>
                  <li><b>schedule</b></li>
                  <li><b class="actStep">passenger info</b></li>
                  <li><b>payment</b></li>
                  <li class="lastStep"><b>confimation</b></li>
                </ul>
              </div>
              <div class="line">
                <table class="tableStyle">
                  <tbody>
                  	<?php if($this->cart->total_items()){
                        foreach($this->cart->contents() as $key => $value){ ?>
                    <tr>
                      <th class="title" colspan="5"><label class="Fl">Train from <?php echo $value['options']['from']; ?> to <?php echo $value['options']['to']; ?></label>
                        <label class="Fr">Itinerary 1 of <?php echo $this->cart->total_items(); ?></label></th>
                    </tr>
                    <tr>
                      <td class="left gray" colspan="5"><b>-----&gt;  Outbound -
                      <?php echo $value['options']['depart']; ?></b></td>
                    </tr>
                    <tr>
                      <td><?php echo $value['options']['hdepart']; ?> - <b><?php echo $value['options']['from']; ?></b></td>
                      <td><?php echo $value['options']['hreturn']; ?> - <b><?php echo $value['options']['to']; ?></b></td>
                      <td><?php echo $value['options']['htotal']; ?> (duration)</td>
                      <td><b><?php echo $value['name']; ?></b></td>
                      <td><b>$ <?php echo $value['price']; ?></b></td>
                    </tr>
                    <?php } } ?>
                  </tbody>
                </table>
              </div>
              <!-- EXTRA SERVICES -->
              <table class="tableStyle">
                <tbody>
                  <tr>
                    <th class="title"><label class="Fl">Extra services</label></th>
                  </tr>
                  <tr>
                    <td class="left size11">
                    <input type="hidden" id="servicehide" value="0" datatitle="0" />
                    <?php if(isset($listservice) && $listservice != NULL){ ?>
                    <?php foreach($listservice as $items){ ?>
                    <p class="line8"><input type="radio" class="extrasv" datatitle="<?php echo $items['service_title']; ?>" name="extraservice" value="<?php echo $items['service_adults']; ?>">&nbsp; <b><?php echo $items['service_title']."&nbsp;($".$items['service_adults'].")"; ?></b></p>
                    <?php } } ?>
                    </td>
                  </tr>
                </tbody>
              </table>
              <table class="tableStyle">
                <tbody>
                  <tr>
                    <th class="title"><label class="Fl">Contact Information</label></th>
                  </tr>
                  <tr>
                    <td class="left"><p class="traveller220"> <b class="line3"><span class="c_ff7e00">*</span> Full name</b>
                        <input type="text" class="ipS220" name="fname" id="hname">
                      </p>
                      <p class="traveller220"> <b class="line3"><span class="c_ff7e00">*</span> Email</b>
                        <input type="text" class="ipS220" name="email" id="hemail" />
                      </p></td>
                  </tr>
                  <tr>
                    <td class="left"><p class="traveller220"> <b class="line3"><span class="c_ff7e00">*</span> Phone</b>
                      <input type="text" class="ipS220" name="phone" id="hphone" />
                    </p>
                      <p class="traveller220"> <b class="line3"><span class="c_ff7e00">*</span>Country</b>
                        <select class="sel220" id="hcountry" name="country">
                          <option value="Afghanistan">Afghanistan</option>
                          <option value="Albania">Albania</option>
                          <option value="Algeria">Algeria</option>
                          <option value="American Samoa">American Samoa</option>
                          <option value="Andorra">Andorra</option>
                          <option value="Angola">Angola</option>
                          <option value="Anguilla">Anguilla</option>
                          <option value="Antigua Barbuda">Antigua Barbuda</option>
                          <option value="Argentina">Argentina</option>
                          <option value="Armenia">Armenia</option>
                          <option value="Aruba">Aruba</option>
                          <option value="Australia">Australia</option>
                          <option value="Austria">Austria</option>
                          <option value="Azerbaijan">Azerbaijan</option>
                          <option value="Bahamas">Bahamas</option>
                          <option value="Bahrain">Bahrain</option>
                          <option value="Bangladesh">Bangladesh</option>
                          <option value="Barbados">Barbados</option>
                          <option value="Belarus">Belarus</option>
                          <option value="Belgium">Belgium</option>
                          <option value="Belize">Belize</option>
                          <option value="Benin">Benin</option>
                          <option value="Bermuda">Bermuda</option>
                          <option value="Bhutan">Bhutan</option>
                          <option value="Bolivia">Bolivia</option>
                          <option value="Bosnia Herzegovina">Bosnia Herzegovina</option>
                          <option value="Botswana">Botswana</option>
                          <option value="Brazil">Brazil</option>
                          <option value="British Virgin Islands">British Virgin Islands</option>
                          <option value="Brunei">Brunei</option>
                          <option value="Bulgaria">Bulgaria</option>
                          <option value="Burkina Faso">Burkina Faso</option>
                          <option value="Burundi">Burundi</option>
                          <option value="Cambodia">Cambodia</option>
                          <option value="Cameroon">Cameroon</option>
                          <option value="Canada">Canada</option>
                          <option value="Cape Verde">Cape Verde</option>
                          <option value="Cayman Islands">Cayman Islands</option>
                          <option value="Central African Republic">Central African Republic</option>
                          <option value="Chad">Chad</option>
                          <option value="Chile">Chile</option>
                          <option value="China">China</option>
                          <option value="Christmas Island">Christmas Island</option>
                          <option value="Cocos Islands">Cocos Islands</option>
                          <option value="Colombia">Colombia</option>
                          <option value="Comoros">Comoros</option>
                          <option value="Congo Democratic Republic">Congo Democratic Republic</option>
                          <option value="Congo">Congo</option>
                          <option value="Cook Islands">Cook Islands</option>
                          <option value="Costa Rica">Costa Rica</option>
                          <option value="Croatia">Croatia</option>
                          <option value="Cuba">Cuba</option>
                          <option value="Cyprus">Cyprus</option>
                          <option value="Czech Republic">Czech Republic</option>
                          <option value="Denmark">Denmark</option>
                          <option value="Djibouti">Djibouti</option>
                          <option value="Dominica">Dominica</option>
                          <option value="Dominican Republic">Dominican Republic</option>
                          <option value="Ecuador">Ecuador</option>
                          <option value="Egypt">Egypt</option>
                          <option value="El Salvador">El Salvador</option>
                          <option value="Equatorial Guinea">Equatorial Guinea</option>
                          <option value="Eritrea">Eritrea</option>
                          <option value="Estonia">Estonia</option>
                          <option value="Ethiopia">Ethiopia</option>
                          <option value="Falkland Islands">Falkland Islands</option>
                          <option value="Fiji">Fiji</option>
                          <option value="Finland">Finland</option>
                          <option value="France">France</option>
                          <option value="French Guyana">French Guyana</option>
                          <option value="French Polynesia">French Polynesia</option>
                          <option value="Gabon">Gabon</option>
                          <option value="Gambia">Gambia</option>
                          <option value="Georgia">Georgia</option>
                          <option value="Germany">Germany</option>
                          <option value="Ghana">Ghana</option>
                          <option value="Gibraltar">Gibraltar</option>
                          <option value="Greece">Greece</option>
                          <option value="Greenland">Greenland</option>
                          <option value="Grenada">Grenada</option>
                          <option value="Guadeloupe">Guadeloupe</option>
                          <option value="Guam">Guam</option>
                          <option value="Guatemala">Guatemala</option>
                          <option value="Guinea">Guinea</option>
                          <option value="Guinea Bissau">Guinea Bissau</option>
                          <option value="Guyana">Guyana</option>
                          <option value="Haiti">Haiti</option>
                          <option value="Honduras">Honduras</option>
                          <option value="Hong Kong">Hong Kong</option>
                          <option value="Hungary">Hungary</option>
                          <option value="Iceland">Iceland</option>
                          <option value="India">India</option>
                          <option value="Indonesia">Indonesia</option>
                          <option value="Iran">Iran</option>
                          <option value="Iraq">Iraq</option>
                          <option value="Ireland">Ireland</option>
                          <option value="Israel">Israel</option>
                          <option value="Italy">Italy</option>
                          <option value="Ivory Coast">Ivory Coast</option>
                          <option value="Jamaica">Jamaica </option>
                          <option value="Japan">Japan</option>
                          <option value="Jordan">Jordan</option>
                          <option value="Kazakhstan">Kazakhstan</option>
                          <option value="Kenya">Kenya</option>
                          <option value="Kiribati">Kiribati</option>
                          <option value="Kuwait">Kuwait</option>
                          <option value="Kyrgyzstan">Kyrgyzstan</option>
                          <option value="Laos">Laos</option>
                          <option value="Latvia">Latvia</option>
                          <option value="Lebanon">Lebanon</option>
                          <option value="Lesotho">Lesotho</option>
                          <option value="Liberia">Liberia</option>
                          <option value="Libya">Libya</option>
                          <option value="Liechtenstein">Liechtenstein</option>
                          <option value="Lithuania">Lithuania</option>
                          <option value="Luxembourg">Luxembourg</option>
                          <option value="Macedonia">Macedonia</option>
                          <option value="Madagascar">Madagascar</option>
                          <option value="Malawi">Malawi</option>
                          <option value="Malaysia">Malaysia</option>
                          <option value="Maldives">Maldives</option>
                          <option value="Mali">Mali</option>
                          <option value="Malta">Malta</option>
                          <option value="Marshall Islands">Marshall Islands</option>
                          <option value="Martinique">Martinique</option>
                          <option value="Mauritania">Mauritania</option>
                          <option value="Mauritius">Mauritius</option>
                          <option value="Mayotte">Mayotte</option>
                          <option value="Mexico">Mexico</option>
                          <option value="Micronesia">Micronesia</option>
                          <option value="Moldova">Moldova</option>
                          <option value="Monaco">Monaco</option>
                          <option value="Mongolia">Mongolia</option>
                          <option value="Montenegro">Montenegro</option>
                          <option value="Montserrat">Montserrat</option>
                          <option value="Morocco">Morocco</option>
                          <option value="Mozambique">Mozambique</option>
                          <option value="Myanmar">Myanmar</option>
                          <option value="Namibia">Namibia</option>
                          <option value="Nauru">Nauru</option>
                          <option value="Nepal">Nepal</option>
                          <option value="Netherlands">Netherlands</option>
                          <option value="Netherlands Antilles">Netherlands Antilles</option>
                          <option value="New Caledonia">New Caledonia</option>
                          <option value="New Zealand">New Zealand</option>
                          <option value="Nicaragua">Nicaragua</option>
                          <option value="Niger">Niger</option>
                          <option value="Nigeria">Nigeria</option>
                          <option value="Niue">Niue</option>
                          <option value="Norfolk Island">Norfolk Island</option>
                          <option value="Korea">Korea</option>
                          <option value="Norway">Norway</option>
                          <option value="Oman">Oman</option>
                          <option value="Pakistan">Pakistan</option>
                          <option value="Palau">Palau</option>
                          <option value="Panama">Panama</option>
                          <option value="Papua New Guinea">Papua New Guinea</option>
                          <option value="Paraguay">Paraguay</option>
                          <option value="Peru">Peru</option>
                          <option value="Philippines">Philippines</option>
                          <option value="Pitcairn Island">Pitcairn Island</option>
                          <option value="Poland">Poland</option>
                          <option value="Portugal">Portugal</option>
                          <option value="Puerto Rico">Puerto Rico</option>
                          <option value="Qatar">Qatar</option>
                          <option value="Reunion">Reunion</option>
                          <option value="Romania">Romania</option>
                          <option value="Russia">Russia</option>
                          <option value="Rwanda">Rwanda</option>
                          <option value="Saint Helena">Saint Helena</option>
                          <option value="Saint Kitts Nevis">Saint Kitts Nevis</option>
                          <option value="Saint Lucia">Saint Lucia</option>
                          <option value="Saint Martin">Saint Martin</option>
                          <option value="Saint Pierre Miquelon">Saint Pierre Miquelon</option>
                          <option value="Saint Vincent Grenadines">Saint Vincent Grenadines</option>
                          <option value="Samoa">Samoa</option>
                          <option value="San Marino">San Marino</option>
                          <option value="Sao Tome Principe">Sao Tome Principe</option>
                          <option value="Saudi Arabia">Saudi Arabia</option>
                          <option value="Senegal">Senegal</option>
                          <option value="Serbia">Serbia</option>
                          <option value="Seychelles">Seychelles</option>
                          <option value="Sierra Leone">Sierra Leone</option>
                          <option value="Singapore">Singapore</option>
                          <option value="Slovakia Republic">Slovakia Republic</option>
                          <option value="Slovenia">Slovenia</option>
                          <option value="Solomon Islands">Solomon Islands</option>
                          <option value="Somalia">Somalia</option>
                          <option value="South Africa">South Africa</option>
                          <option value="South Korea">South Korea</option>
                          <option value="Spain">Spain</option>
                          <option value="Sri Lanka">Sri Lanka</option>
                          <option value="Sudan">Sudan</option>
                          <option value="Suriname">Suriname</option>
                          <option value="Swaziland">Swaziland</option>
                          <option value="Sweden">Sweden</option>
                          <option value="Switzerland">Switzerland</option>
                          <option value="Syria">Syria</option>
                          <option value="Taiwan">Taiwan</option>
                          <option value="Tajikistan">Tajikistan</option>
                          <option value="Tanzania">Tanzania</option>
                          <option value="Thailand">Thailand</option>
                          <option value="Timor Leste">Timor Leste</option>
                          <option value="Togo">Togo</option>
                          <option value="Tokelau">Tokelau</option>
                          <option value="Tonga">Tonga</option>
                          <option value="Trinidad Tobago">Trinidad Tobago</option>
                          <option value="Tunisia">Tunisia</option>
                          <option value="Turkey">Turkey</option>
                          <option value="Turkmenistan">Turkmenistan</option>
                          <option value="Tuvalu">Tuvalu</option>
                          <option value="Uganda">Uganda</option>
                          <option value="Ukraine">Ukraine</option>
                          <option value="United Arab Emirates">United Arab Emirates</option>
                          <option value="United Kingdom">United Kingdom</option>
                          <option value="United States">United States</option>
                          <option value="Uruguay">Uruguay</option>
                          <option value="Uzbekistan">Uzbekistan</option>
                          <option value="Vanuatu">Vanuatu</option>
                          <option value="Vatican">Vatican</option>
                          <option value="Venezuela">Venezuela</option>
                          <option value="Vietnam">Vietnam</option>
                          <option value="Wallis Futuna Islands">Wallis Futuna Islands</option>
                          <option value="Yemen">Yemen</option>
                          <option value="Zambia">Zambia</option>
                          <option value="Zimbabwe">Zimbabwe</option>
                          <option value="Hanoi">Hanoi</option>
                          <option value="Hai Phong">Hai Phong</option>
                          <option value="Da Nang">Da Nang</option>
                          <option value="Nha Trang">Nha Trang</option>
                          <option value="TP Ho Chi Minh">TP Ho Chi Minh</option>
                          <option value="Can Tho">Can Tho</option>
                        </select>
                      </p></td>
                  </tr>
                  <tr>
                    <td class="left"><p class="traveller220"> <b class="line3">Information</b>
                    	<textarea id="hinfo" cols="70" rows="4"></textarea>
                    </p></td>
                  </tr>
                  <tr>
                  	<td>
                    	<p id="herrors" style="color:#F00"></p>
                    	<button class="btn btn-red continue" id="btnContinue" type="submit"><span>Continue</span></button>
                    </td>
                  </tr>
                </tbody>
              </table>
              <input type="hidden" name="total" id="total" value="42">
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<div class="page-center">
  <div class="signup-offer">
    <div class="signup-banner"> <b class="inline-block size16">Have any questions? Please contact us</b> <a class="button btn-offer" href="<?php echo base_url(); ?>contact.html">Contact</a> <span class="inline-block size11">Don't worry, we won't share your details with anyone alse</span> </div>
  </div>
  <!--/ SIGN UP - OFFER --> 
</div>
